Cristian Suarez Vera
29-05-2020
R is a programing language and free sofware environment for statistical computing
colnames(titanic)
[1] "PassengerId" "Survived" "Pclass" "Name" "Sex"
[6] "Age" "SibSp" "Parch" "Ticket" "Fare"
[11] "Cabin" "Embarked"
R is a programing language and free sofware environment for statistical computing
summary(titanic$Age)
Min. 1st Qu. Median Mean 3rd Qu. Max. NA's
0.42 20.12 28.00 29.70 38.00 80.00 177
R is a programing language and free sofware environment for statistical computing
womenFirstClass <- titanic[titanic$Sex == "female" & titanic$Pclass == 1, c("Name")]
head(womenFirstClass, 5)
[1] Cumings, Mrs. John Bradley (Florence Briggs Thayer)
[2] Futrelle, Mrs. Jacques Heath (Lily May Peel)
[3] Bonnell, Miss. Elizabeth
[4] Spencer, Mrs. William Augustus (Marie Eugenie)
[5] Harper, Mrs. Henry Sleeper (Myna Haxtun)
891 Levels: Abbing, Mr. Anthony ... Zimmerman, Mr. Leo